<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery-1.8.3.js"></script>
</head>
<body>
<div id="updateDiv" align="center"><!-- 新增DIV -->
		
		<form name="addf" action="" method="post" enctype="multipart/form-data" target="hideframe">
		<!-- 需要进行表单封装 -->
		<input type="hidden" name="userId" value="${userTable1.user_id }">
		<%-- <input type="hidden" name="userAcount" value="${userTable.user_account }"> --%>
		
		<br>用户名：<input type="text" name="userAccount" value="${userTable1.user_account }">
        <br> 性别：<input type="text" id='isNan' name="userSex" value='${userTable1.user_sex==1?"男":"女" }' >
                 
        <br>邮箱：<input type="text" name="userEmail" value="${userTable1.user_email }">
        <br>年龄：<input type="text" name="userAge" value="${userTable1.user_age }">
		<br> 密码：<input type="text" name="userPass" value="${userTable1.user_pass }"> 
		
		<br> 出生日期：<input type="text" name="userBirthday" value="${userTable1.user_birthday }">
		
		<br><input type="button" onclick = "goUpdate()" value="修改">
		<!-- <br><input type="button" onclick='goUpdate("+item.userId+")' value="修改"> -->
	</form>
	</div>

</body>
<script type="text/javascript">
/* function goUpdate(userId){
	
	window.location.href="${pageContext.request.contextPath}/servlet/updateQuery?userId="+userId;
	
} */
 function goUpdate(){
	
	window.location.href="${pageContext.request.contextPath}/jsp/userManager/updateSingle.jsp";
	
}
</script>
</html>